package com.example.yuntiku.Service;

import com.example.yuntiku.dao.impl.QuestionDaoImpl;
import com.example.yuntiku.entity.Question;
import com.example.yuntiku.entity.Record;
import java.util.List;

public class QuestionService {
    QuestionDaoImpl questionDao;
    public QuestionService(){
        this.questionDao=new QuestionDaoImpl();
    }

    public List<Question> selectQuestion(String[] recordlist, String section, String knowledgeone, String knowledgetwo, int tmshu){
        return questionDao.selectQuestion(recordlist,section,knowledgeone,knowledgetwo,tmshu);
    }
    public Record selectRecordlist(String section,String knowledgeone,String knowledgetwo){
        return questionDao.selectRecordlist(section,knowledgeone,knowledgetwo);
    }
    public Question selectAnswer(int answer){
        return questionDao.selectDaan(answer);
    }
    public List<Question> selectQuestion1(String knowledgetwo,int tmshu){
        return questionDao.selectQuestion1(knowledgetwo,tmshu);
    }
    public int insertQuestion(Question question){
        return questionDao.insertQuestion(question);
    }
    public Question selectAll(int id){
        return questionDao.selectAll(id);
    }
}
